package com.snowball.demo;

import com.snowball.mq.spring.annotation.EnableSbtMQ;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@EnableSbtMQ
public class SpringbootDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDemoApplication.class, args);
        System.out.println("spring boot is running...");
    }

    @RequestMapping("/")
    public String index() {
        return "Welcome,  The demo project for spring boot!";
    }
}
